<?php
/**
 * User: lie
 * Date: 2020/11/5 9:37
 * description: 数据转换
 */
$a = 10;
$b = "我是字符串型数据";
$c = $a+$b;
$f = $b+$a;
echo "自动类型转换："."<br>";
echo "10+我是字符串型数据=".$c."<br>";
echo "强制类型转换："."<br>";
echo "10+我是字符串型数据=".(string)$c."<br>";
